package kr.hkit.powerjava.chapter13;

import java.awt.FlowLayout;
import java.awt.HeadlessException;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class MyWorkFrame extends JFrame {

	public MyWorkFrame() throws HeadlessException {
		setLayout(new FlowLayout());
		BtnPanel b1 = new BtnPanel();
		HeaderPanel h1 = new HeaderPanel();		
		JPanel p1 = new JPanel();		
		p1.add(b1);
		p1.add(h1);
		pack();
		add(p1);
		setVisible(true);
		
	}	
}
